package com.edushare.common.orm;

import org.apache.cayenne.access.DataContext;

/**
 * Contains data that are require to Cayenne to function properly.
 * @author Naishe
 *
 */
public class CayenneORMInterface implements ORMInterface {
	private static final long serialVersionUID = -5280295571934566328L;
	private DataContext dataContext;

	public void setDataContext(DataContext dataContext) {
		this.dataContext = dataContext;
	}

	public DataContext getDataContext() {
		return dataContext;
	}

	public void commitAllChanges() {
		dataContext.commitChanges();
	}
}
